package web.login.bo;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import web.login.dao.LoginDao;
import web.login.entity.Login;

@Service(value="loginBo")
@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)
public class LoginBo {
	
	private final Log log = LogFactory.getLog ( LoginBo.class );
	
	@Autowired
	private LoginDao loginDao;
	
	public LoginDao getLoginDao() {
		return loginDao;
	}

	public void setLoginDao(LoginDao loginDao) {
		this.loginDao = loginDao;
	}


	public List<Login> getAllUsers()
	{
		return this.loginDao.getAllLogin();
	}
}
